﻿using Autodesk.Revit.DB;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZhuXingFamilys.CADInformation.Entity
{
    public class CADInfo
    {
        public string classification { get; set; }
        public string subitem { get; set; }
        public string information { get; set; }
        public string content { get; set; }


        public List<string> GetCADInformation(Document doc, List<ElementId> selectedElementIds)
        {
            List<string> cadInformation = new List<string>();

            foreach (var elementId in selectedElementIds)
            {
                // 根据ElementId获取对应的元素
                var element = doc.GetElement(elementId);

                //获取每个元素的CAD信息，并添加到cadInformation列表中
                string info = $"Element ID: {element.Id}, Element Name: {element.Name}, Classification: {classification}";
                cadInformation.Add(info);
            }

            return cadInformation;
        }



    }
}
